package com.erp.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.erp.sys.pojo.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {

    @Select("select pid from sys_role_permission where rid = #{rid} ")
    public List<Integer>  getPidsByRid(Integer rid);
}
